package com.leemon.mall.admin.security;

import com.leemon.mall.security.token.MyAuthenticationToken;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;


/**
 * @author limenglong
 * @create 2019-09-16 11:21
 * @desc 系统用户账号密码登录
 **/
@Data
public class AdminAuthenticationToken extends MyAuthenticationToken {
    private String sessionUUID;
    private String imageCode;

    //无参构造，少了此构造方法jackson反序列化时会抛出无法构造实例对象
    public AdminAuthenticationToken() {
        super(null, null);
    }

    public AdminAuthenticationToken(Object principal, Object credentials) {
        super(principal, credentials);
    }
}
